class Student {
    // 使用private关键字修饰属性，实现封装
    private String name;
    private int age;
    private String gender;
    private String studentId;

    // 构造器用于初始化对象属性
    public Student(String name, int age, String gender, String studentId) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.studentId = studentId;
    }

    // 提供get方法用于获取属性值
    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    // 提供set方法用于修改属性值
    public void setName(String name) {
        this.name = name;
    }
}